package com.zhou.yygh.hosp.repository;

import org.springframework.data.mongodb.repository.MongoRepository;
import zhou.hospital.model.hosp.Schedule;

import java.util.Date;
import java.util.List;

public interface SchesuleReapository extends MongoRepository<Schedule,String> {

    //根据医院编号和排班编号查询
    Schedule getByHoscodeAndHosScheduleId(String hoscode, String hosScheduleId );
    //根据医院编号，科室编号,工作日期，查询排班日期
    List<Schedule> findScheduleByHoscodeAndDepcodeAndWorkDate(String hoscode, String depcode, Date workDate);

}
